package hy.ctrl;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@CrossOrigin
@Controller
public class HelloCtrl  {
    @RequestMapping("/hello")
    @ResponseBody
    public String hel(){
        System.out.println("有人来获取数据啦");
        return "hello world";
    }
}
